package Team.Listener.MainFrame;

import java.awt.event.*;
import javax.swing.*;
import javax.swing.JOptionPane;
import Team.View.MainFrame.*;

public class SubmitQuestionButtonListener implements ActionListener
{
    public SubmitQuestionButtonListener(TeamMainFrameView view)
    {
    	this.view = view;
    }
    public void actionPerformed(ActionEvent event)
    {
    	int option =  JOptionPane.showConfirmDialog(this.view.frame, 
    			"Problem ID : " + view.questionProblemcomboBox.getSelectedItem() + "\n"
				+"Text : " + view.questionTextArea.getText() + "\n"
				+ "\n" + "Action : Submit Question\n"
				+ "Do you want to Submit the Question?");	
       if (option == JOptionPane.YES_OPTION)
       {
    	   
       }
    }
    
    private TeamMainFrameView view;
}
